/******************** (C) COPYRIGHT 2013 InMotion ******************************
* File Name 	: Median_Filter.h
* Author 		: InMotion
* Version 		: V0.0.1
* Date 			: 2013-5-1
* Description 	: 中值滤波
*******************************************************************************/
/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __MEDIAN_FILTER_H__
#define __MEDIAN_FILTER_H__

/* Includes ------------------------------------------------------------------*/
#include "stm32f10x.h"

/* Exported types ------------------------------------------------------------*/
typedef struct
{
	s32 *delay;		 //暂存数量	, 从小到大排列的
	s32 tap;	
}MEDIAN_FILTER_Int_DEF;

/* Exported constants --------------------------------------------------------*/
/* Exported macro ------------------------------------------------------------*/

/* Exported functions --------------------------------------------------------*/
s32 Median_Filter_int(MEDIAN_FILTER_Int_DEF *filter, s32 invar) ;
void Median_Filter_int_Clear(MEDIAN_FILTER_Int_DEF *filter);

/* Exported variables ------------------------------------------------------- */

#endif /* __MEDIAN_FILTER_H__ */

/********************** (C) COPYRIGHT 2013 InMotion *****END OF FILE************/ 				 
